from selenium import webdriver
import pytest,time
from YK_liushuai.Page.Page1 import Page1
from YK_liushuai.Tool.Tools import qudong
# datas=qudong('data.yaml')
@pytest.fixture
def driver():
    driver=webdriver.Edge()
    # 窗口最大化
    driver.maximize_window()
    driver.get('http://10.59.9.12:7001/')
    time.sleep(3)
    yield driver
    # 退出
    driver.quit()
# @pytest.mark.parametrize('data',datas)
def test_A3mall(driver):
    po=Page1(driver)
    # po.test_a3mall_login(data.get('username'),data.get('password'))
    po.test_a3mall_tuangou()



